import 'package:flutter/material.dart';

class InMenuButton extends StatelessWidget {

  final String text;
  final Alignment alignment;
  final void Function() onPressed;

  InMenuButton({required this.text,this.alignment=Alignment.centerLeft,required this.onPressed});

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      onTap: onPressed,
      child: Container(
        alignment: alignment,
        margin: EdgeInsets.symmetric(vertical: 8),
        child: Text(
          text,
          style: TextStyle(
            color: Colors.white, fontWeight: FontWeight.bold, fontSize: 16,),
        ),
      ),
    );
  }
}